//
//  WheelWebView.m
//  TravelDiary
//
//  Created by lanou3g on 15/11/13.
//  Copyright © 2015年 YDB MAC. All rights reserved.
//

#import "WheelWebView.h"
@interface WheelWebView ()<UIGestureRecognizerDelegate>

@end

@implementation WheelWebView

#pragma mark ----懒加载
- (UIWebView *)webView
{
    if (!_webView)
    {
        self.webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    }
    return _webView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.webView.userInteractionEnabled = YES;
    
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.url]];
    [self.webView loadRequest:request];
    [self.view addSubview:self.webView];
    
    
    UIGestureRecognizer *singleTap = [[UIGestureRecognizer alloc]initWithTarget:self action:nil];
    singleTap.cancelsTouchesInView = NO;
    [self.webView addGestureRecognizer:singleTap];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
